Pagination in React.js